var tpl = require('../../views/register');
var register = require('../register/register');
var template = require('template');
var loginjs = require('../login/login');
var router = require('{com}/router');
return {
    path:'/register/',
    template:tpl,
    events:{
        'click .j-login':'login',
        'click .logo':'goindex'
    },
    onInit:function(){
        
    },
    onAfter:function(){
        register();
    },
    login:function(){
        loginjs();
    },
    goindex:function(){
        router.location('/index/')
    }
}